package com.maiji.cloud.entities.login;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 *  各种标签
 */
@NoArgsConstructor
@Data
@Accessors(chain=true)
@Table(name = "label")
public class Label {

	@TableId
    @Column(name = "uu_id", type = MySqlTypeConstant.VARCHAR, length = 50, isKey = true)
    private String uuId; //主键

    @Column(name = "name", type = MySqlTypeConstant.VARCHAR, length = 20)
    private String name;  // 标签名称

    @Column(name = "order_no", type = MySqlTypeConstant.INT, length = 1)
    private Integer orderNo;  // 标签排序

    @Column(name = "list_show", type = MySqlTypeConstant.INT, length = 1, defaultValue = "0")
    private Integer listShow;  // 显示类型，0不显示，1普通列表显示

    @Column(name = "source", type = MySqlTypeConstant.VARCHAR, length = 20)
    private String source;  // 标签来源

    @Column(name = "desc", type = MySqlTypeConstant.VARCHAR, length = 100)
    private String desc;  // 标签描述

    @Column(name = "url", type = MySqlTypeConstant.VARCHAR, length = 100)
    private String url;

    @TableField(exist = false)
    private String imgId; // 标签图片ID

}
